package edu.calvin.djs32.cs214.interpreters;

import java.io.IOException;

import org.antlr.runtime.ANTLRFileStream;

public class PlusOneInterpreterCLIDriver {
	public static void main(String[] args) throws IOException {
		  Hobbes2008Lexer lexer = new Hobbes2008Lexer(new ANTLRFileStream("input.hob"));
		  int program = Integer.parseInt(lexer.nextToken().getText());
		  PlusOneInterpreter interpreter = new PlusOneInterpreter();
		  System.out.println(interpreter.interpret(program));
		}
}
